//默认是生产和发布都起效果的 所以做个判断
const proPlugins = []
if (process.env.NODE_ENV === 'production') {
    proPlugins.push('transform-remove-console')
}
module.exports = {
    "presets": [
        "@vue/cli-plugin-babel/preset"
    ],
    "plugins": [
        [
            "component",
            {
                "libraryName": "element-ui",
                "styleLibraryName": "theme-chalk"
            }
        ],

        ...proPlugins,
        '@babel/plugin-syntax-dynamic-import'

    ]
}